body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.container {
    width: 80%;
    margin: 0 auto;
    background-color: #fff;
    padding: 20px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

header {
    background-color: #007bff;
    color: #fff;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
}

section {
    margin: 20px 0;
}

h2 {
    border-bottom: 2px solid #007bff;
    padding-bottom: 10px;
    margin-bottom: 20px;
}
#dataSourceList li, #tableList li {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #eee;
}

#dataSourceList li:hover, #tableList li:hover {
    background-color: #f5f5f5;
}

#dataSourceList li.active {
    background-color: #007bff;
    color: white;
}

.mysql-tool, .xmind-converter, .testcase-generator {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.db-connection, .sql-generator, .sql-editor, .query-result {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
}

.db-tables, .table-structure {
    background-color: #e9ecef;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    height: 200px;
    overflow-y: auto;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    resize: vertical;
}

button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
}

button:hover {
    background-color: #0056b3;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    margin-bottom: 5px;
}

/* 数据库选择和表列表横向布局 */
.db-row {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}
.db-select, .table-list {
    background: #e9ecef;
    border-radius: 5px;
    padding: 15px;
    min-width: 180px;
    height: 260px;
    overflow-y: auto;
}

/* 多表结构横向分列 */
.table-structures {
    display: flex;
    gap: 16px;
    margin-top: 20px;
    flex-wrap: wrap;
}
.table-struct-col {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    padding: 10px;
    min-width: 220px;
    max-width: 260px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.table-struct-col h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #007bff;
    text-align: center;
}
.table-struct-col table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.table-struct-col th, .table-struct-col td {
    border: 1px solid #ddd;
    padding: 4px 6px;
    text-align: left;
}
.table-struct-col th {
    background: #f2f2f2;
}

/* 表多选高亮 */
#tableList li.active {
    background-color: #28a745;
    color: #fff;
}
#tableList li {
    cursor: pointer;
    padding: 5px;
    border-bottom: 1px solid #eee;
    border-radius: 3px;
    transition: background 0.2s;
}
#tableList li:hover {
    background: #e0f7fa;
}

/* SQL输入区按钮间距 */
.sql-editor button {
    margin-right: 10px;
}

